// import { baseURL } from "tinymce";

const MODULE_USER = {
  state: {
    isLogin: false,
    areaId: "",
    cityId: "",
    className: "",
    deptId: "",
    gradeId: "",
    id: "1",
    loginName: "",
    orgId: "",
    realName: "",
    schoolId: "",
    schoolName: "",
    username: "",
    roles: [],
    sessionIdName: "",
    sessionIdValue: "",
    homeUrl:"",
    phurl:"",
    btPut:"-1"
  },

  getters: {},

  mutations: {
    saveuser(state, value) {
      state.isLogin = value.isLogin
      state.personId = value.personId
      state.loginName = value.loginName
      state.realName = value.realName
      state.personType = value.personType
      state.userType = value.userType
      state.classId = value.classId
      state.deptId = value.deptId
      state.unitId = value.unitId
      state.roleList = value.roleList
      state.maxRoleCode = value.maxRoleCode
      state.homeUrl = value.homeUrl
      state.userCenterUrl = value.userCenterUrl
      state.manager = value.manager
      state.classManager = value.classManager
      state.roles = value.roles
    },
    saveImgUrl(state,value){
      state.phurl = value
    },
    stopButton(state,value){
      state.btPut = value
    }
  }
};

export { MODULE_USER };
